package com.jaydenxiao.common.basebean;

/**
 * Created by hasee on 2017/10/17.
 */

public class MsgEvent<T> {

    private T data;

    private String mMsg;
    private int type;
    private int request;


    public static final int HOME_ITEM_CHANGE=1;
    public static final int ITEM_EDIT =2;
    public static final int ITEM_BEAN_CLICK_EVENT=9;
    public static final int ITEM_BEAN_UPDATE_EVENT=10;
    public static final int SUBMIT_DATA_SUCCESS=11;
    public static final int SUBMIT_DATA_FAILED=12;
    public static final int BUTTON_SUBMIT=13;
    public static final int UPDATE_MARKET_BEAN=14;


    public MsgEvent() {

    }

    public MsgEvent(int type, String mMsg) {
        this.type = type;
        this.mMsg = mMsg;
    }

    public MsgEvent(int type, T data) {
        this.type = type;
        this.data = data;
    }

    public MsgEvent(int type) {
        this.type = type;
    }

    public MsgEvent(int request, int type, String msg) {
        this.type = type;
        this.mMsg = msg;
        this.request = request;
    }
    public String getMsg(){
        return mMsg;
    }
    public int getType(){
        return type;
    }
    public int getRequest(){ return request; }

    public void setmMsg(String mMsg) {
        this.mMsg = mMsg;
    }

    public void setType(int type) {
        this.type = type;
    }

    public T getData(){return data;}

}